package com.example.springbootdemo;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class MailService {
//    @Autowired
//    JavaMailSender javaMailSender;
//
//    public void sendMail(String from, String to, String cc, String subject, String content){
//        SimpleMailMessage simpleMsg = new SimpleMailMessage();
//        simpleMsg.setFrom(from);
//        simpleMsg.setTo(to);
//        simpleMsg.setCc(cc);
//        simpleMsg.setSubject(subject);
//        simpleMsg.setText(content);
//        javaMailSender.send(simpleMsg);
//    }
//
//    @Test
//    public void send(){
//        sendMail("1591128087@qq.com", "1591128087@qq.com", "1591128087@qq.com", "greeting from angel", "hello world");
//    }
}
